<table id="payment_details" class="grid" cellspacing="0" cellpadding="0">
	<thead>
	<tr>
		<th class="first">{translate}Order number{/translate}</th>
		<th>{translate}Patient's ID_1{/translate}</th>
		<th>{translate}Name{/translate}</th>						
		<th>{translate}Times of collected{/translate}</th>
		<th>{translate}Real payment{/translate}</th>		
		<th>{translate}Day{/translate}</th>
		<th class="last">{translate}Address{/translate}</th>
	</tr>
	</thead>
	<tbody>
	{foreach from=$result item=item}	
	<tr {if $item.no > 1}class="impressive"{/if}>
		<td class="first">{$item.count}</td>
		<td>{$item.patient_code}</td>
		<td><a href="javascript:viewDetails({$item.payment_collection_id}, {$item.patient_id}, {$item.no}, '{$item.selected_date}');">{$item.patient_name}</a></td>
		<td style="text-align: center;">{$item.no}</td>
		<td style="text-align: right;">{$item.total_amount}</td>
		<td>{$item.date}</td>
		<td class="last">{$item.address}</td>
	</tr>	
	{/foreach}
	</tbody>
</table>